﻿$(function () {
    let htmlWidth = document.documentElement.clientWidth || document.body.clientWidth;
    let htmlHeight = document.documentElement.clientHeight || document.body.clientHeight;
    //alert(htmlWidth)
    let htmlDom = document.getElementsByTagName('html')[0];
    htmlDom.style.fontSize = htmlWidth / 10 + 'px';

    //设置腾讯地图区域初始高度
    $(".mainContainer").css("height", htmlHeight + "px");
})